﻿@model Nop.Admin.Models.WindAlert.WindDataTableModel
@{
    var curDate = (DateTime)ViewBag.CurrentUserDateTime;
}

<div >
<h1>@curDate</h1>
<table>
    @foreach (Nop.Admin.Models.WindAlert.WindDataRowModel row in Model.TableRows)
    { 
        <tr>
        <td>
            @if (curDate.AddHours(-1) > row.StationAdjustedTime)
            {
                <span style="color:Red">@row.StationAdjustedTime</span>
            }
            else
            {
                @row.StationAdjustedTime
            }   
            
        </td>
        <td>
            @row.StationName
        </td>
        <td>
            @row.WindSpeed
        </td>
        <td>
            @row.WindDirection
        </td>
        </tr>
    }
    </table>
</div>